package cn.JHai.rbac.mapper;

import cn.JHai.rbac.domain.SystemDictionaryItem;
import cn.JHai.rbac.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SystemDictionaryItemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SystemDictionaryItem record);

    SystemDictionaryItem selectByPrimaryKey(Long id);

    List<SystemDictionaryItem> selectAll();

    int updateByPrimaryKey(SystemDictionaryItem record);

    Long selectForCount(QueryObject queryObject);

    List<SystemDictionaryItem> pageSelect(QueryObject queryObject);

    Long selectForCountByParentId(@Param("queryObject") QueryObject queryObject, @Param("parent_id") Long parent_id);

    List<SystemDictionaryItem> pageSelectByParentId(@Param("queryObject") QueryObject queryObject, @Param("parent_id") Long parent_id);
}
